/* eslint camelcase: "off" */

import I18n from 'react-native-i18n';
import DeviceInfo from 'react-native-device-info';

I18n.fallbacks = true;
I18n.translations = {
  en: require('./translations/en'),
  zh: require('./translations/zh'),
};

const deviceLocale = DeviceInfo.getDeviceLocale();
console.info(deviceLocale);
I18n.locale = deviceLocale;

export default I18n;
